<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改</title>
    <link rel="stylesheet" href="/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
    <script type="text/javascript" src="/js/xadmin.js"></script>
    <script src="/layui/layui.js" charset="utf-8"></script>

</head>
<body>
<form class="layui-form" id="test" th:action="@{/user-updateCust}" method="post"  >
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-inline">
            <input type="text" name="custName" required lay-verify="required" placeholder="请输入真实姓名" autocomplete="on" class="layui-input" th:value="${customer.getCustName()}">
        </div>
            <div class="layui-form-mid layui-word-aux">真实姓名不得为空</div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-inline">
            <input type="text" name="custPhone" required lay-verify="required" placeholder="请输入手机号" autocomplete="on" class="layui-input" th:value="${customer.getCustPhone()}">
        </div>
            <div class="layui-form-mid layui-word-aux">手机号不得为空</div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">身份号</label>
        <div class="layui-input-inline">
            <input type="text" name="CustNum" required lay-verify="required" placeholder="请输入身份号" autocomplete="on" class="layui-input" th:value="${customer.getCustNum()}">
        </div>
            <div class="layui-form-mid layui-word-aux">身份号不得为空</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block" th:if="${customer.getSex()=='男'}">
            <input type="radio" name="sex" value="男" title="男" checked>
            <input type="radio" name="sex" value="女" title="女" >
        </div>
        <div class="layui-input-block" th:unless="${customer.getSex()=='男'}">
            <input type="radio" name="sex" value="男" title="男" >
            <input type="radio" name="sex" value="女" title="女" checked>
        </div>
    </div>
    <div class="layui-row" style="text-align: center;">
        <button class="layui-btn" lay-submit lay-filter="formDemo"  style="display:none" id="subBtn">立即提交</button>
    </div>
</form>
<script>
    var form = layui.form;
    layui.use('form', function() {
     });
</script>

</body>
</html>